package com.example.comment.base.dto;

import com.example.comment.utils.PageParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @author QingZeyu
 * @date 2024/5/6 11:36
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CommentQueryDTO extends PageParam {

    @ApiModelProperty(value = "关联id")
    @NotNull(message = "关联id不能为空")
    private Long referenceId;

    @ApiModelProperty(value = "当前请求用户id")
    private Long userId;

    @ApiModelProperty(value = "最大评论id，分页时使用")
    private Long maxCommentId;
}
